Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@remirror/ui

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remirror/ui

ui utilities for remirror

  • 0.6.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
decreased by-48.28%
Maintainers
1
Weekly downloads
 
Created
Source

@remirror/ui

npm bundle size (scoped) npm

This library is the base for all the UI (user interface) components and styles within Remirror. It uses @emotion/core and @styled-system/css, but was inspired by theme-ui.

Installation

yarn add @remirror/ui @remirror/core @remirror/react

Usage

Firstly, create the theme or use a custom theme preset.

sx

The sx utility comes from the [@styled-system/css][styled-system/css] package and is intended for use with the Emotion css prop. It will attempt to use values from the theme object for many common CSS properties, and will fall back to raw values when there is no corresponding theme value.

To see a list of supported CSS properties, see the Styled System CSS docs.

sx(styleObject)(theme);

Usage:

/** @jsx jsx */
import { jsx } from '@emotion/core';

<div css={sx(styles)} />;
ArgumentTypeDescription
styleObjectObjecta theme-aware style object with support for responsive array values and Styled System prop shortcuts
themeObjectthe Emotion theming context object

FAQs

Package last updated on 17 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc